const ipcRenderer = require('electron').ipcRenderer;
//console.log(ipcRenderer.sendSync('test3', '我是渲染进程')); // prints "我是主进程"

ipcRenderer.on('test2', function(event, arg) {
  console.log("test 2"+arg); 
});

ipcRenderer.on('test3', function(event, arg) {
  console.log("test 3"); 
});
//ipcRenderer.send('test1', '我是渲染进程的test2');

